// samsting : this file is auto create.

#include "Ecs/2014-05-26/DescribeEipAddressesResponse.h"

namespace aliyun { namespace Ecs {

DescribeEipAddressesResponse::DescribeEipAddressesResponse() {
}

const string& DescribeEipAddressesResponse::EipAddress::LockReason::GetLockReason(void) const {
  return LockReason_;
}

const std::vector<DescribeEipAddressesResponse::EipAddress::LockReason>& DescribeEipAddressesResponse::EipAddress::GetOperationLocks(void) const {
  return OperationLocks_;
}

const string& DescribeEipAddressesResponse::EipAddress::GetRegionId(void) const {
  return RegionId_;
}

const string& DescribeEipAddressesResponse::EipAddress::GetIpAddress(void) const {
  return IpAddress_;
}

const string& DescribeEipAddressesResponse::EipAddress::GetAllocationId(void) const {
  return AllocationId_;
}

const string& DescribeEipAddressesResponse::EipAddress::GetStatus(void) const {
  return Status_;
}

const string& DescribeEipAddressesResponse::EipAddress::GetInstanceId(void) const {
  return InstanceId_;
}

const string& DescribeEipAddressesResponse::EipAddress::GetBandwidth(void) const {
  return Bandwidth_;
}

const string& DescribeEipAddressesResponse::EipAddress::GetInternetChargeType(void) const {
  return InternetChargeType_;
}

const string& DescribeEipAddressesResponse::EipAddress::GetAllocationTime(void) const {
  return AllocationTime_;
}

const string& DescribeEipAddressesResponse::EipAddress::GetInstanceType(void) const {
  return InstanceType_;
}

const std::vector<DescribeEipAddressesResponse::EipAddress>& DescribeEipAddressesResponse::GetEipAddresses(void) const {
  return EipAddresses_;
}

int DescribeEipAddressesResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int DescribeEipAddressesResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeEipAddressesResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* DescribeEipAddressesResponse::BaseKey(void) {
  return "DescribeEipAddressesResponse";
}

void DescribeEipAddressesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int EipAddresses__length = 0;
  UnmarshallerInt(EipAddresses__length, response_map, "DescribeEipAddressesResponse.EipAddresses.Length");
  if(EipAddresses__length >= 0) {
    EipAddresses_.resize(EipAddresses__length);
    for(int i1 = 0; i1 < EipAddresses__length; i1++) {
      int EipAddresses_i1_OperationLocks__length = 0;
      UnmarshallerInt(EipAddresses_i1_OperationLocks__length, response_map, "DescribeEipAddressesResponse.EipAddresses[+"+string_ValueOfInt(i1)+"].OperationLocks.Length");
      if(EipAddresses_i1_OperationLocks__length >= 0) {
        EipAddresses_[i1].OperationLocks_.resize(EipAddresses_i1_OperationLocks__length);
        for(int i2 = 0; i2 < EipAddresses_i1_OperationLocks__length; i2++) {
          UnmarshallerString(EipAddresses_[i1].OperationLocks_[i2].LockReason_, response_map, "DescribeEipAddressesResponse.EipAddresses[+"+string_ValueOfInt(i1)+"].OperationLocks["+string_ValueOfInt(i2)+"].LockReason");
        } // for(int i2 = 0; i2 < EipAddresses_i1_OperationLocks__length; i2++) {
      } // if(EipAddresses_i1_OperationLocks__length >= 0) {

      UnmarshallerString(EipAddresses_[i1].RegionId_, response_map, "DescribeEipAddressesResponse.EipAddresses["+string_ValueOfInt(i1)+"].RegionId");
      UnmarshallerString(EipAddresses_[i1].IpAddress_, response_map, "DescribeEipAddressesResponse.EipAddresses["+string_ValueOfInt(i1)+"].IpAddress");
      UnmarshallerString(EipAddresses_[i1].AllocationId_, response_map, "DescribeEipAddressesResponse.EipAddresses["+string_ValueOfInt(i1)+"].AllocationId");
      UnmarshallerString(EipAddresses_[i1].Status_, response_map, "DescribeEipAddressesResponse.EipAddresses["+string_ValueOfInt(i1)+"].Status");
      UnmarshallerString(EipAddresses_[i1].InstanceId_, response_map, "DescribeEipAddressesResponse.EipAddresses["+string_ValueOfInt(i1)+"].InstanceId");
      UnmarshallerString(EipAddresses_[i1].Bandwidth_, response_map, "DescribeEipAddressesResponse.EipAddresses["+string_ValueOfInt(i1)+"].Bandwidth");
      UnmarshallerString(EipAddresses_[i1].InternetChargeType_, response_map, "DescribeEipAddressesResponse.EipAddresses["+string_ValueOfInt(i1)+"].InternetChargeType");
      UnmarshallerString(EipAddresses_[i1].AllocationTime_, response_map, "DescribeEipAddressesResponse.EipAddresses["+string_ValueOfInt(i1)+"].AllocationTime");
      UnmarshallerString(EipAddresses_[i1].InstanceType_, response_map, "DescribeEipAddressesResponse.EipAddresses["+string_ValueOfInt(i1)+"].InstanceType");
    } // for(int i1 = 0; i1 < EipAddresses__length; i1++) {
  } // if(EipAddresses__length >= 0) {

  UnmarshallerInt(TotalCount_, response_map, "DescribeEipAddressesResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeEipAddressesResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeEipAddressesResponse.PageSize");
}


} } // namespace aliyun { namespace Ecs {

// end of file 
